package com.idbk.chargestation.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.idbk.chargestation.R;

/**
 * 自定义toolbar（不带menu的）
 * @author lupc
 *
 */
public class EToolbar2 extends RelativeLayout {

	private TextView mTextTitle;
	
	private ImageView mImageBack;
	
	private ImageView mImageMenu1;
	
	private ImageView mImageMenu2;
	
	public EToolbar2(Context context, AttributeSet attrs) {
		super(context, attrs);
		
		inflate(context, R.layout.tj_toolbar_2, this);
		
		mTextTitle = (TextView)findViewById(R.id.toolbar_title);
		mImageBack = (ImageView)findViewById(R.id.toolbar_back);
		
		mImageMenu1 = (ImageView)findViewById(R.id.imageview_menu_1);
		mImageMenu2 = (ImageView)findViewById(R.id.imageview_menu_2);
	}
	
	public void setTitle(CharSequence title){
		mTextTitle.setText(title);
	}
	
	public ImageView getBackView(){
		return mImageBack;
	}
	
	public ImageView getImageMenu1(){
		return mImageMenu1;
	}
	
	public ImageView getImageMenu2(){
		return mImageMenu2;
	}

}
